<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的日记</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>

<div class="container">
    <h1>记录我的日记</h1>
    <form id="diaryForm">
        <label for="weather">天气</label>
        <select id="weather" name="weather">
            <option value="Sunny">晴天</option>
            <option value="Cloudy">阴天</option>
            <option value="Rainy">雨天</option>
            <option value="Snowy">雪天</option>
        </select>

        <label for="mood">心情</label>
        <select id="mood" name="mood">
            <option value="Happy">开心</option>
            <option value="Sad">伤心</option>
            <option value="Neutral">平静</option>
            <option value="Excited">兴奋</option>
        </select>

        <label for="events">发生的事件</label>
        <textarea id="events" name="events" rows="5" placeholder="描述今天发生的事情..."></textarea>

        <button type="submit">提交日记</button>
    </form>

    <div class="message" id="message"></div>
</div>

<div class="container">
    <button id="viewDiaryBtn">查看历史日记</button>
    <div class="diary-list" id="diaryList"></div>
</div>

<script src="script.js"></script>

</body>
</html>
